<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            margin: 0;
            display: flex;
        }
        aside {
            width: 150px;
            height: 100vh;
            background-color: chocolate;
        }
        .container {
            flex: 1;
            display: flex;
            /* 设置允许换行 */
            flex-wrap: wrap;
            align-content: flex-start;
        }
        .container .box {
            width: 25%;
            height: 200px;
            /* outline: 1px solid red; */
            font-size: 100px;
            padding: 8px;
            /* 防止内边距撑大盒子 */
            box-sizing: border-box;
        }
        .container .box>div {
            width: 100%;
            height: 100%;
            outline: 1px solid red;
        }

        @media screen and (max-width: 600px) {
            .container .box {
                width: 100%;
            }
        }

        @media screen and (min-width: 601px) and (max-width: 1000px) {
            .container .box {
                width: 50%;
            }
        }
    </style>
</head>
<body>
    <aside></aside>
    <div class="container">
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
        <div class="box">
            <div>a</div>
        </div>
    </div>
</body>
</html>